package com.rongxue.mapper;

import com.rongxue.pojo.SUserWalletRecords;
import com.rongxue.pojo.SUserWalletRecordsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface  SUserWalletRecordsMapper {
    int countByExample(SUserWalletRecordsExample example);

    int deleteByExample(SUserWalletRecordsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SUserWalletRecords record);

    List<SUserWalletRecords> selectByExample(SUserWalletRecordsExample example);

    int insertSelective(SUserWalletRecords record);

    SUserWalletRecords selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SUserWalletRecords record, @Param("example") SUserWalletRecordsExample example);

    int updateByExample(@Param("record") SUserWalletRecords record, @Param("example") SUserWalletRecordsExample example);

    int updateByPrimaryKeySelective(SUserWalletRecords record);

    int updateByPrimaryKey(SUserWalletRecords record);

    //修改充值的状态
    int updateStatusByRefnumber(@Param("status") String status, @Param("refnumber") String refnumber);

    void updateSelective(SUserWalletRecords sUserWalletRecords);

    void insertPayCode(SUserWalletRecords code);

    Map<String,Object> selectQuotaByUserId(SUserWalletRecords sUserWalletRecords);

    void savePayCode(SUserWalletRecords sUserWalletRecords);

    void updateWalletSelective(SUserWalletRecords sUserWalletRecords);

    SUserWalletRecords selectWalletRecordsByrRechargeNo(String mchntorderid);
    //资金记录
    List<SUserWalletRecords>  selectWalletRecordsByUserId(String userId);
    //用户充值提现记录
    List<SUserWalletRecords>  selectWalletRecordsByMap(Map<String,Object> map);
}